wayland: Only update the window title if it actually updated
authorJonas Ådahl <jadahl@gmail.com>
Fri, 1 Jul 2016 08:51:32 +0000 (16:51 +0800)
committerJonas Ådahl <jadahl@gmail.com>
Thu, 25 Aug 2016 04:31:40 +0000 (12:31 +0800)
This makes the protocol log less spammy.

https://bugzilla.gnome.org/show_bug.cgi?id=769937

gdk/wayland/gdkwindow-wayland.c

index b05861256a5b805352fc013a3168f0a42b7bee49..f1f00987e40ceaa109b5ff33b4fada787a4d61a7 100644 (file)
@@ -2343,6 +2343,9 @@ gdk_wayland_window_set_title (GdkWindow   *window,
 
   impl = GDK_WINDOW_IMPL_WAYLAND (window->impl);
 
+  if (g_strcmp0 (impl->title, title) == 0)
+    return;
+
   g_free (impl->title);
 
   g_utf8_validate (title, MAX_WL_BUFFER_SIZE, &end);